home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//en">
- <!--Converted with LaTeX2HTML 2022 (Released January 1, 2022) -->
- <HTML lang="en">
- <HEAD>
- <TITLE>Contents of HP 9000/710</TITLE>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
- <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
- <META NAME="Generator" CONTENT="LaTeX2HTML v2022">
- <LINK REL="STYLESHEET" HREF="mhn-tutorial.css">
- <LINK REL="previous" HREF="node24_mn.html">
- <LINK REL="up" HREF="node23_mn.html">
- <LINK REL="next" HREF="node26_mn.html">
- </HEAD>
- <BODY bgcolor="#ffffff" text="#000000" link="#9944EE" vlink="#0000ff" alink="#00ff00">
- <H2><A ID="SECTION000132000000000000000">
- HP 9000/710</A>
- </H2>
- The HP-Apollo 9000/710 workstation has a telephone-quality audio chip
- and an internal speaker. Newer workstations in the 9000/700 series
- may also be equipped for audio; the 9000/720 and 9000/730 models aren't.
- HP provides a number of programs in source form that may be used
- with <TT>mhn</TT>:
- STYLE="" SRC="img20.png"
- ALT="\begin{brieflist}
- \item {\tt player} and {\tt splayer};
- \item {\tt recorder} and {\tt srecorder}
- \end{brieflist}">
- The directory <TT>/usr/audio/examples/</TT> contains these programs.
- The <TT>README</TT> file in that directory documents the various audio
- utility programs for recording and playing sounds.
- The programs from <TT>/usr/audio/examples</TT> should be copied into a
- directory named in your <TT>$PATH</TT> environment variable so that the
- audio programs can be found if absolute paths aren't used in the
- invocations.
- Before any of the aforementioned programs can be used, the audio
- device files must be created by running <TT>/usr/audio/bin/make_audio_dev</TT>, and two daemons must be started by
- the superuser: <TT>/usr/etc/ncs/llbd</TT> and <TT>/usr/audio/bin/Aserver</TT>. Refer to the man page Audio(5) for detailed,
- step by step instructions on how to do these things. Alternatively,
- refer to the HP publication ``Audio Users Guide'' (HP order number
- A1991-90609, November 1991 version).
- The audio devices support several ``native'' encodings that vary as to
- which of the audio device files is used: one of <TT>/dev/audio[BEI][ALU]</TT>, where <TT>E</TT>=external jack, <TT>I</TT>=internal
- speaker, <TT>B</TT>=both; <TT>A</TT>=8-bit A-law, <TT>L</TT>=16-bit linear,
- <TT>U</TT>=8-bit <I>μ</I>-law. It is possible to <TT>cat</TT> a raw audio data
- file of the appropriate type to or from one of these devices. For
- example, a raw SPARC audio file may be played by running this command:
- <PRE>
- % cat bark.raw >/dev/audioIU
- </PRE>
- There is also a raw <TT>/dev/audio</TT> device.
- (You must create the audio device files before you can cat anything
- to them; again, refer to Audio(5) for information on how to do this.)
- In HP-UX 8.07, the audio tools, rather than looking for header
- information in the sound data, rely on user-supplied information, such
- as preferences, file extensions, or command line options, to inform
- the tools about the types and sampling rates of the audio data. This
- means that both <TT>audio/basic</TT> and <TT>audio/x-next</TT> can be used,
- but you have to use an appropriate file extension or command line
- option as follows:
- <TABLE CELLPADDING=3>
- <TR><TD ALIGN="LEFT"><I>type</I></TD>
- <TD ALIGN="CENTER"><I>extension</I></TD>
- <TD ALIGN="CENTER"><I>option</I></TD>
- </TR>
- <TR><TD ALIGN="LEFT"> </TD>
- <TD ALIGN="CENTER"> </TD>
- <TD ALIGN="CENTER"> </TD>
- </TR>
- <TR><TD ALIGN="LEFT"><TT>audio/basic</TT></TD>
- <TD ALIGN="CENTER"><TT>.u</TT></TD>
- <TD ALIGN="CENTER"><TT>-u</TT></TD>
- </TR>
- <TR><TD ALIGN="LEFT"><TT>audio/x-next</TT></TD>
- <TD ALIGN="CENTER"><TT>.au</TT></TD>
- <TD ALIGN="CENTER"><TT>-au</TT></TD>
- </TR>
- </TABLE>
- The relevant <TT>mhn</TT> profile entries for recording and playing
- audio parts are these:
- <PRE>
- mhn-compose-audio/basic: recorder '%F' -u -pause
- mhn-compose-audio/x-next: recorder '%F' -au -pause
- mhn-show-audio/basic: splayer -u
- mhn-show-audio/x-next: splayer -au
- </PRE>
- In general, HP audio file names have the form
- <BLOCKQUOTE>
- <I>file name</I>[[.<I>sample rate</I>].<I>type</I>]
- </BLOCKQUOTE>
- where
- <PRE><TT>
- <I>sample rate</I> <!-- MATH
- $\rightarrow$
- → <I>digit</I><SUP>+</SUP> 000 <TT>|</TT> <I>digit</I><SUP>+</SUP> k
- <BR><I>type</I> <!-- MATH
- $\rightarrow$
- → u <TT>|</TT> al <TT>|</TT> au <TT>|</TT> wav <TT>|</TT> snd <TT>|</TT> l8 <TT>|</TT> lo8 <TT>|</TT> l16
- </TT></PRE>
- The audio types have these meanings:
- <PRE><TT>
- <I>μ</I>-law u
- A-law al
- Sun (self-describing format) au
- Microsoft RIFF Waveform wav
- Macintosh snd
- Linear8 l8
- Linear8Offset lo8
- Linear16 l16
- </TT></PRE>
- Examples:
- STYLE="" SRC="img21.png"
- ALT="\begin{comdesc}
- \item[bark.au] ---a Sun-format ({\tt audio/x-next}) sound file
- ...econd.
- \item[bark.8k.u] ---same data as in {\tt bark.8000.u}.
- \end{comdesc}">
- As with the SPARC, the default sample rate is 8000/second.
- Other useful programs supplied with HP-UX 8.07 are these:
- STYLE="" SRC="img22.png"
- ALT="\begin{comdesc}
- \item[/usr/audio/bin/audio\_demo] ---This program provides
- menus...
- ...s allows you to fiddle with the
- volume controls whenever you like.
- \end{comdesc}">
- </BODY>
- </HTML>
-